package com.venutech.gongan.service;

import com.venutech.gongan.entity.TbWork;

import java.util.List;

/**
 * 巡检Service接口
 * 
 * @author linxb
 * @date 2023-09-18
 */
public interface ITbWorkService 
{
    /**
     * 查询巡检
     * 
     * @param wkId 巡检主键
     * @return 巡检
     */
    public TbWork selectTbWorkByWkId(Long wkId);

    /**
     * 查询巡检列表
     * 
     * @param tbWork 巡检
     * @return 巡检集合
     */
    public List<TbWork> selectTbWorkList(TbWork tbWork);

    /**
     * 新增巡检
     * 
     * @param tbWork 巡检
     * @return 结果
     */
    public int insertTbWork(TbWork tbWork);

    /**
     * 修改巡检
     * 
     * @param tbWork 巡检
     * @return 结果
     */
    public int updateTbWork(TbWork tbWork);

    /**
     * 批量删除巡检
     * 
     * @param wkIds 需要删除的巡检主键集合
     * @return 结果
     */
    public int deleteTbWorkByWkIds(String wkIds);

    /**
     * 删除巡检信息
     * 
     * @param wkId 巡检主键
     * @return 结果
     */
    public int deleteTbWorkByWkId(Long wkId);

    List<TbWork> selectcompletedTbWorkList(TbWork tbWork);

    List<TbWork> faultyWorkList(TbWork tbWork);

    List<TbWork> intelWorkList(TbWork tbWork);

    List<TbWork> faultyIntelWorkList(TbWork tbWork);

    void regularInspection();
}
